package com.dodayum.java8.pattern.strategy;

/**
 * @author BaiYu
 * @date 2023/11/2415:22
 */
public class Context {

    private IStrategy iStrategy;

    public Context(IStrategy iStrategy){
        this.iStrategy = iStrategy;
    }

    public void algorithm(){
        this.iStrategy.algorithm();
    }

}
